from django.urls import path
from apps.goods.views import ListView,MySearchView,DetailView,DetailVisitView


urlpatterns = [
    path('list/<int:category_id>/skus/',ListView.as_view()),
    # 搜索路由--千万注意: 没有as_view(),因为它继承自object, 而不是View, 所以不需要as_view()
    path('detail/<int:sku_id>/',DetailView.as_view()),
    path('search/', MySearchView()),
    # 详情页分类商品访问量
    path('detail/visit/<int:category_id>/', DetailVisitView.as_view()),

]